package cn.explink.dop.enums;

import java.util.ArrayList;
import java.util.List;


/*
 * @author wangzy
 */
public enum ReturnDeliveryManNameEnum {


//	NOT_ASSIGN(1, "未分配"), ASSIGNED(2, "已分配待确认"), TO_DISTRIBUTE(3, "待配送"), DISTRIBUTING(4, "配送中"), DISTRIBUTE_SUCCESS(5, "配送成功"), DISTRIBUTE_FAILURE(6, "配送失败");

	ZHANGSAN(1,"张三"),ZHANGCHENG(2,"张成"),SONGKAOJUN(3,"宋考俊"),LILEI(4,"李磊");
	private int value;

	private String text;

	private ReturnDeliveryManNameEnum(int value, String text) {
		this.value = value;
		this.text = text;
	}

	public int getValue() {
		return this.value;
	}

	public String getText() {
		return this.text;
	}

	public static List<ReturnDeliveryManNameEnum> getAllReturnDeliveryManName() {
		List<ReturnDeliveryManNameEnum> orderStatusEnumList = new ArrayList<ReturnDeliveryManNameEnum>();
		orderStatusEnumList.add(ZHANGSAN);
		orderStatusEnumList.add(ZHANGCHENG);
		orderStatusEnumList.add(SONGKAOJUN);
		orderStatusEnumList.add(LILEI);
		return orderStatusEnumList;
	}

	public static String getTextByValue(int value) {
		List<ReturnDeliveryManNameEnum> allDeliveryManName = ReturnDeliveryManNameEnum.getAllReturnDeliveryManName();
		for (ReturnDeliveryManNameEnum returnDeliveryManNameEnum : allDeliveryManName) {
			if (returnDeliveryManNameEnum.getValue() == value) {
				return returnDeliveryManNameEnum.getText();
			}
		}
		return "";
	}
	
	
}
